<?php

namespace App\Models;

class WechatMsgList extends BaseModel
{
    protected $casts = [
        'tpl_content' => 'json',
    ];

    protected $fillable = ['id', 'tpl_name', 'tpl_id', 'tpl_content', 'url'];

    public function records()
    {
        $this->hasMany(WechatTemplateMsg::class, 'msg_id', 'id');
    }
}
